emit_show_error_message (view, _("Unable to access location"), error->message);
should_show = FALSE;
}
- else
- {
- /* it was cancelled, so probably it was called during finalize, bail out. */
- g_clear_error (&error);
- return;
- }
+
+ /* The operation got cancelled by the user and or the error
+ has been handled already. */
g_clear_error (&error);
}
emit_show_error_message (GTK_PLACES_VIEW (user_data), _("Unable to access location"), error->message);
should_show = FALSE;
}
- else
- {
- /* it was cancelled, so probably it was called during finalize, bail out. */
- g_clear_error (&error);
- return;
- }
+ /* The operation got cancelled by the user and or the error
+ has been handled already. */
g_clear_error (&error);
}